﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using TransportAbstractionLibrary.Exceptions;
using System.Runtime.InteropServices;

namespace TransportAbstractionLibrary.Common
{
    [Serializable, ComVisible(true)]
    public class TALSocketException : TALException
    {
        SocketError socketError;

        public SocketError SocketError
        {
            get { return socketError; }
        }

        public TALSocketException(IProtocolBase protocol, string message, SocketError socketError)
            : base(protocol, message)
        {
            this.socketError = socketError;
        }

        public TALSocketException(IProtocolBase protocol, string message)
            : base(protocol, message)
        {
        }
    }
}
